﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeurOthello.NNetwork
{
    [Serializable]
    class InputNode : Neuron
    {
        double inputValue = 0;
    

        public InputNode(int nInLayer, Neuron[] outputs)
            : base(0, nInLayer, outputs)
        {
            weights = null;
            bias = 0;
        }

        public override void Activate()
        {
            int i = 0;
            foreach (Neuron send in outputs)
            {
                send.RecieveInput(inputValue, nInLayer);
                i++;
            }
        }

        public void RecieveInput(double inputValue)
        {
            this.inputValue = inputValue;
        }
    }
}
